﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

public partial class Showresult : System.Web.UI.Page
{
    //private string voteID1 = "1";
    //private string voteID2 = "2";
    //private string voteID3 = "3";
    //private string voteID4 = "4";
    //private string voteID5 = "5";
    //private string voteID6 = "6";
    //private string voteID7 = "7";
    //private string voteID8 = "8";
    //private string voteID9 = "9";
    //private string voteID10 = "10";
    //private string voteID11 = "11";
    //private string voteID12 = "12";
    //private string voteID13 = "13";
    //protected void Page_Load(object sender, EventArgs e)
    //{


    //    SqlConnection con = DB.createConnection();
    //    con.Open();

    //    SqlCommand cmd1 = new SqlCommand("select voteTitle from voteIssue where voteID=" + this.voteID1, con);
    //    SqlCommand cmd2 = new SqlCommand("select voteTitle from voteIssue where voteID=" + this.voteID2, con);
    //    SqlCommand cmd3 = new SqlCommand("select voteTitle from voteIssue where voteID=" + this.voteID3, con);
    //    SqlCommand cmd4 = new SqlCommand("select voteTitle from voteIssue where voteID=" + this.voteID4, con);
    //    SqlCommand cmd5 = new SqlCommand("select voteTitle from voteIssue where voteID=" + this.voteID5, con);
    //    SqlCommand cmd6 = new SqlCommand("select voteTitle from voteIssue where voteID=" + this.voteID6, con);
    //    SqlCommand cmd7 = new SqlCommand("select voteTitle from voteIssue where voteID=" + this.voteID7, con);
    //    SqlCommand cmd8 = new SqlCommand("select voteTitle from voteIssue where voteID=" + this.voteID8, con);
    //    SqlCommand cmd9 = new SqlCommand("select voteTitle from voteIssue where voteID=" + this.voteID9, con);
    //    SqlCommand cmd10 = new SqlCommand("select voteTitle from voteIssue where voteID=" + this.voteID10, con);
    //    SqlCommand cmd11 = new SqlCommand("select voteTitle from voteIssue where voteID=" + this.voteID11, con);
    //    SqlCommand cmd12 = new SqlCommand("select voteTitle from voteIssue where voteID=" + this.voteID12, con);
    //    SqlCommand cmd13 = new SqlCommand("select voteTitle from voteIssue where voteID=" + this.voteID13, con);

    //    string title1 = Convert.ToString(cmd1.ExecuteScalar());
    //    string title2 = Convert.ToString(cmd2.ExecuteScalar());
    //    string title3 = Convert.ToString(cmd3.ExecuteScalar());
    //    string title4 = Convert.ToString(cmd4.ExecuteScalar());
    //    string title5 = Convert.ToString(cmd5.ExecuteScalar());
    //    string title6 = Convert.ToString(cmd6.ExecuteScalar());
    //    string title7 = Convert.ToString(cmd7.ExecuteScalar());
    //    string title8 = Convert.ToString(cmd8.ExecuteScalar());
    //    string title9 = Convert.ToString(cmd9.ExecuteScalar());
    //    string title10 = Convert.ToString(cmd10.ExecuteScalar());
    //    string title11 = Convert.ToString(cmd11.ExecuteScalar());
    //    string title12 = Convert.ToString(cmd12.ExecuteScalar());
    //    string title13 = Convert.ToString(cmd13.ExecuteScalar());

    //    this.Label1.Text = "01、" + title1;
    //    this.Label2.Text = "02、" + title2;
    //    this.Label3.Text = "03、" + title3;
    //    this.Label4.Text = "04、" + title4;
    //    this.Label5.Text = "05、" + title5;
    //    this.Label6.Text = "06、" + title6;
    //    this.Label7.Text = "07、" + title7;
    //    this.Label8.Text = "08、" + title8;
    //    this.Label9.Text = "09、" + title9;
    //    this.Label10.Text = "10、" + title10;
    //    this.Label11.Text = "11、" + title11;
    //    this.Label12.Text = "12、" + title12;
    //    this.Label13.Text = "13、" + title13;

    
    //    SqlCommand cmd1_1 = new SqlCommand("select prnt from prnt where voteID=" + 1 + "and votedetailID=" + 1, con);
    //    float width1_1 = Convert.ToSingle(cmd1_1.ExecuteScalar());
    //    Image1.Width = Unit.Pixel(Convert.ToInt32(width1_1 * 50));
    //    Label66.Text = Convert.ToString(Convert.ToSingle(width1_1) * 100) + "%";

    //    SqlCommand cmd1_2 = new SqlCommand("select prnt from prnt where voteID=" + 1 + "and votedetailID=" + 2, con);
    //    float width1_2 = Convert.ToSingle(cmd1_2.ExecuteScalar());
    //    Image2.Width = Unit.Pixel(Convert.ToInt32(width1_2* 50));
    //    Label67.Text = Convert.ToString(Convert.ToSingle(width1_2) * 100) + "%";

    //    SqlCommand cmd2_1 = new SqlCommand("select prnt from prnt where voteID=" + 2 + "and votedetailID=" + 1, con);
    //    float width2_1 = Convert.ToSingle(cmd2_1.ExecuteScalar());
    //    Image3.Width = Unit.Pixel(Convert.ToInt32(width2_1* 50));
    //    Label68.Text = Convert.ToString(Convert.ToSingle(width2_1) * 100) + "%";

    //    SqlCommand cmd2_2 = new SqlCommand("select prnt from prnt where voteID=" + 2 + "and votedetailID=" + 2, con);
    //    float width2_2 = Convert.ToSingle(cmd2_2.ExecuteScalar());
    //    Image4.Width = Unit.Pixel(Convert.ToInt32(width2_2* 50));
    //    Label69.Text = Convert.ToString(Convert.ToSingle(width2_1) * 100) + "%";

    //    SqlCommand cmd2_3 = new SqlCommand("select prnt from prnt where voteID=" + 2 + "and votedetailID=" + 3, con);
    //    float width2_3 = Convert.ToSingle(cmd2_3.ExecuteScalar());
    //    Image5.Width = Unit.Pixel(Convert.ToInt32(width2_3* 50));
    //    Label70.Text = Convert.ToString(Convert.ToSingle(width2_3) * 100) + "%";

    //    SqlCommand cmd2_4 = new SqlCommand("select prnt from prnt where voteID=" + 2 + "and votedetailID=" + 4, con);
    //    float width2_4 = Convert.ToSingle(cmd2_4.ExecuteScalar());
    //    Image6.Width = Unit.Pixel(Convert.ToInt32(width2_4* 50));
    //    Label71.Text = Convert.ToString(Convert.ToSingle(width2_4) * 100) + "%";

    //    SqlCommand cmd3_1 = new SqlCommand("select prnt from prnt where voteID=" + 3 + "and votedetailID=" + 1, con);
    //    float width3_1 = Convert.ToSingle(cmd3_1.ExecuteScalar());
    //    Image7.Width =Unit.Pixel( Convert.ToInt32(width3_1* 50));
    //    Label72.Text = Convert.ToString(Convert.ToSingle(width3_1) * 100) + "%";

    //    SqlCommand cmd3_2 = new SqlCommand("select prnt from prnt where voteID=" + 3 + "and votedetailID=" + 2, con);
    //    float width3_2 = Convert.ToSingle(cmd3_2.ExecuteScalar());
    //    Image8.Width =Unit.Pixel( Convert.ToInt32(width3_2* 50));
    //    Label73.Text = Convert.ToString(Convert.ToSingle(width3_2) * 100) + "%";

    //    SqlCommand cmd3_3 = new SqlCommand("select prnt from prnt where voteID=" + 3 + "and votedetailID=" + 3, con);
    //    float width3_3 = Convert.ToSingle(cmd3_3.ExecuteScalar());
    //    Image9.Width = Unit.Pixel(Convert.ToInt32(width3_3* 50));
    //    Label74.Text = Convert.ToString(Convert.ToSingle(width3_3) * 100) + "%";

    //    SqlCommand cmd3_4 = new SqlCommand("select prnt from prnt where voteID=" + 3 + "and votedetailID=" + 4, con);
    //    float width3_4 = Convert.ToSingle(cmd3_4.ExecuteScalar());
    //    Image10.Width = Unit.Pixel(Convert.ToInt32(width3_4* 50));
    //    Label75.Text = Convert.ToString(Convert.ToSingle(width3_4) * 100) + "%";

    //    SqlCommand cmd4_1 = new SqlCommand("select prnt from prnt where voteID=" + 4 + "and votedetailID=" + 1, con);
    //    float width4_1 = Convert.ToSingle(cmd4_1.ExecuteScalar());
    //    Image11.Width = Unit.Pixel(Convert.ToInt32(width4_1* 50));
    //    Label76.Text = Convert.ToString(Convert.ToSingle(width4_1) * 100) + "%";

    //    SqlCommand cmd4_2 = new SqlCommand("select prnt from prnt where voteID=" + 4 + "and votedetailID=" + 2, con);
    //    float width4_2 = Convert.ToSingle(cmd4_2.ExecuteScalar());
    //    Image12.Width = Unit.Pixel(Convert.ToInt32(width4_2* 50));
    //    Label77.Text = Convert.ToString(Convert.ToSingle(width4_2) * 100) + "%";

    //    SqlCommand cmd4_3 = new SqlCommand("select prnt from prnt where voteID=" + 4 + "and votedetailID=" + 3, con);
    //    float width4_3 = Convert.ToSingle(cmd4_3.ExecuteScalar());
    //    Image13.Width = Unit.Pixel(Convert.ToInt32(width4_3* 50));
    //    Label78.Text = Convert.ToString(Convert.ToSingle(width4_3) * 100) + "%";

    //    SqlCommand cmd4_4 = new SqlCommand("select prnt from prnt where voteID=" + 4 + "and votedetailID=" + 4, con);
    //    float width4_4 = Convert.ToSingle(cmd4_4.ExecuteScalar());
    //    Image14.Width = Unit.Pixel(Convert.ToInt32(width4_4* 50));
    //    Label79.Text = Convert.ToString(Convert.ToSingle(width4_4) * 100) + "%";

    //    SqlCommand cmd5_1 = new SqlCommand("select prnt from prnt where voteID=" + 5 + "and votedetailID=" + 1, con);
    //    float width5_1 = Convert.ToSingle(cmd5_1.ExecuteScalar());
    //    Image15.Width =Unit.Pixel( Convert.ToInt32(width5_1* 50));
    //    Label80.Text = Convert.ToString(Convert.ToSingle(width5_1) * 100) + "%";

    //    SqlCommand cmd5_2 = new SqlCommand("select prnt from prnt where voteID=" + 5 + "and votedetailID=" + 2, con);
    //    float width5_2 = Convert.ToSingle(cmd5_2.ExecuteScalar());
    //    Image16.Width = Unit.Pixel(Convert.ToInt32(width5_2* 50));
    //    Label81.Text = Convert.ToString(Convert.ToSingle(width5_2) * 100) + "%";

    //    SqlCommand cmd5_3 = new SqlCommand("select prnt from prnt where voteID=" + 5 + "and votedetailID=" + 3, con);
    //    float width5_3 = Convert.ToSingle(cmd5_3.ExecuteScalar());
    //    Image17.Width = Unit.Pixel(Convert.ToInt32(width5_3* 50));
    //    Label82.Text = Convert.ToString(Convert.ToSingle(width5_3) * 100) + "%";

    //    SqlCommand cmd5_4 = new SqlCommand("select prnt from prnt where voteID=" + 5 + "and votedetailID=" + 4, con);
    //    float width5_4 = Convert.ToSingle(cmd5_4.ExecuteScalar());
    //    Image18.Width =Unit.Pixel( Convert.ToInt32(width5_4* 50));
    //    Label83.Text = Convert.ToString(Convert.ToSingle(width5_4) * 100) + "%";

    //    SqlCommand cmd6_1 = new SqlCommand("select prnt from prnt where voteID=" + 6 + "and votedetailID=" + 1, con);
    //    float width6_1 = Convert.ToSingle(cmd6_1.ExecuteScalar());
    //    Image19.Width = Unit.Pixel(Convert.ToInt32(width6_1* 50));
    //    Label84.Text = Convert.ToString(Convert.ToSingle(width6_1) * 100) + "%";

    //    SqlCommand cmd6_2 = new SqlCommand("select prnt from prnt where voteID=" + 6 + "and votedetailID=" + 2, con);
    //    float width6_2 = Convert.ToSingle(cmd6_2.ExecuteScalar());
    //    Image20.Width =Unit.Pixel( Convert.ToInt32(width6_2* 50));
    //    Label85.Text = Convert.ToString(Convert.ToSingle(width6_2) * 100) + "%";

    //    SqlCommand cmd6_3 = new SqlCommand("select prnt from prnt where voteID=" + 6 + "and votedetailID=" + 3, con);
    //    float width6_3 = Convert.ToSingle(cmd6_3.ExecuteScalar());
    //    Image21.Width = Unit.Pixel(Convert.ToInt32(width6_3* 50));
    //    Label86.Text = Convert.ToString(Convert.ToSingle(width6_3) * 100) + "%";

    //    SqlCommand cmd6_4 = new SqlCommand("select prnt from prnt where voteID=" + 6 + "and votedetailID=" + 4, con);
    //    float width6_4 = Convert.ToSingle(cmd6_4.ExecuteScalar());
    //    Image22.Width = Unit.Pixel(Convert.ToInt32(width6_4* 50));
    //    Label87.Text = Convert.ToString(Convert.ToSingle(width6_4) * 100) + "%";

    //    SqlCommand cmd7_1 = new SqlCommand("select prnt from prnt where voteID=" + 7 + "and votedetailID=" + 1, con);
    //    float width7_1 = Convert.ToSingle(cmd7_1.ExecuteScalar());
    //    Image23.Width = Unit.Pixel(Convert.ToInt32(width7_1* 50));
    //    Label91.Text = Convert.ToString(Convert.ToSingle(width7_1) * 100) + "%";

    //    SqlCommand cmd7_2 = new SqlCommand("select prnt from prnt where voteID=" + 7 + "and votedetailID=" + 2, con);
    //    float width7_2 = Convert.ToSingle(cmd7_2.ExecuteScalar());
    //    Image24.Width = Unit.Pixel(Convert.ToInt32(width7_2* 50));
    //    Label92.Text = Convert.ToString(Convert.ToSingle(width7_2) * 100) + "%";

    //    SqlCommand cmd7_3 = new SqlCommand("select prnt from prnt where voteID=" + 7 + "and votedetailID=" + 3, con);
    //    float width7_3 = Convert.ToSingle(cmd7_3.ExecuteScalar());
    //    Image25.Width = Unit.Pixel(Convert.ToInt32(width7_3* 50));
    //    Label93.Text = Convert.ToString(Convert.ToSingle(width7_3) * 100) + "%";

    //    SqlCommand cmd7_4 = new SqlCommand("select prnt from prnt where voteID=" + 7 + "and votedetailID=" + 4, con);
    //    float width7_4 = Convert.ToSingle(cmd7_4.ExecuteScalar());
    //    Image26.Width = Unit.Pixel(Convert.ToInt32(width7_4* 50));
    //    Label94.Text = Convert.ToString(Convert.ToSingle(width7_4) * 100) + "%";

    //    SqlCommand cmd8_1 = new SqlCommand("select prnt from prnt where voteID=" + 8 + "and votedetailID=" + 1, con);
    //    float width8_1 = Convert.ToSingle(cmd8_1.ExecuteScalar());
    //    Image27.Width = Unit.Pixel(Convert.ToInt32(width8_1* 50));
    //    Label95.Text = Convert.ToString(Convert.ToSingle(width8_1) * 100) + "%";

    //    SqlCommand cmd8_2 = new SqlCommand("select prnt from prnt where voteID=" + 8 + "and votedetailID=" + 2, con);
    //    float width8_2 = Convert.ToSingle(cmd8_2.ExecuteScalar());
    //    Image28.Width = Unit.Pixel(Convert.ToInt32(width8_2* 50));
    //    Label96.Text = Convert.ToString(Convert.ToSingle(width8_2) * 100) + "%";

    //    SqlCommand cmd8_3 = new SqlCommand("select prnt from prnt where voteID=" + 8 + "and votedetailID=" + 3, con);
    //    float width8_3 = Convert.ToSingle(cmd8_3.ExecuteScalar());
    //    Image29.Width = Unit.Pixel(Convert.ToInt32(width8_3* 50));
    //    Label97.Text = Convert.ToString(Convert.ToSingle(width8_3) * 100) + "%";

    //    SqlCommand cmd8_4 = new SqlCommand("select prnt from prnt where voteID=" + 8 + "and votedetailID=" + 4, con);
    //    float width8_4 = Convert.ToSingle(cmd8_4.ExecuteScalar());
    //    Image30.Width = Unit.Pixel(Convert.ToInt32(width8_4* 50));
    //    Label98.Text = Convert.ToString(Convert.ToSingle(width8_4) * 100) + "%";

    //    SqlCommand cmd9_1 = new SqlCommand("select prnt from prnt where voteID=" + 9 + "and votedetailID=" + 1, con);
    //    float width9_1 = Convert.ToSingle(cmd9_1.ExecuteScalar());
    //    Image31.Width = Unit.Pixel(Convert.ToInt32(width9_1* 50));
    //    Label99.Text = Convert.ToString(Convert.ToSingle(width9_1) * 100) + "%";

    //    SqlCommand cmd9_2 = new SqlCommand("select prnt from prnt where voteID=" + 9 + "and votedetailID=" + 2, con);
    //    float width9_2 = Convert.ToSingle(cmd9_2.ExecuteScalar());
    //    Image32.Width = Unit.Pixel(Convert.ToInt32(width9_2* 50));
    //    Label100.Text = Convert.ToString(Convert.ToSingle(width9_2) * 100) + "%";

    //    SqlCommand cmd9_3 = new SqlCommand("select prnt from prnt where voteID=" + 9 + "and votedetailID=" + 3, con);
    //    float width9_3 = Convert.ToSingle(cmd9_3.ExecuteScalar());
    //    Image33.Width = Unit.Pixel(Convert.ToInt32(width9_3* 50));
    //    Label101.Text = Convert.ToString(Convert.ToSingle(width9_3) * 100) + "%";

    //    SqlCommand cmd9_4 = new SqlCommand("select prnt from prnt where voteID=" + 9 + "and votedetailID=" + 4, con);
    //    float width9_4 = Convert.ToSingle(cmd9_4.ExecuteScalar());
    //    Image34.Width = Unit.Pixel(Convert.ToInt32(width9_4* 50));
    //    Label102.Text = Convert.ToString(Convert.ToSingle(width9_4) * 100) + "%";

    //    SqlCommand cmd10_1 = new SqlCommand("select prnt from prnt where voteID=" + 10 + "and votedetailID=" + 1, con);
    //    float width10_1 = Convert.ToSingle(cmd10_1.ExecuteScalar());
    //    Image35.Width =Unit.Pixel( Convert.ToInt32(width10_1* 50));
    //    Label104.Text = Convert.ToString(Convert.ToSingle(width10_1) * 100) + "%";

    //    SqlCommand cmd10_2 = new SqlCommand("select prnt from prnt where voteID=" + 10 + "and votedetailID=" + 2, con);
    //    float width10_2 = Convert.ToSingle(cmd10_2.ExecuteScalar());
    //    Image36.Width =Unit.Pixel( Convert.ToInt32(width10_2* 50));
    //    Label105.Text = Convert.ToString(Convert.ToSingle(width10_2) * 100) + "%";

    //    SqlCommand cmd10_3 = new SqlCommand("select prnt from prnt where voteID=" + 10 + "and votedetailID=" + 3, con);
    //    float width10_3 = Convert.ToSingle(cmd10_3.ExecuteScalar());
    //    Image37.Width = Unit.Pixel(Convert.ToInt32(width10_3* 50));
    //    Label106.Text = Convert.ToString(Convert.ToSingle(width10_3) * 100) + "%";

    //    SqlCommand cmd10_4 = new SqlCommand("select prnt from prnt where voteID=" + 10 + "and votedetailID=" + 4, con);
    //    float width10_4 = Convert.ToSingle(cmd10_4.ExecuteScalar());
    //    Image38.Width = Unit.Pixel(Convert.ToInt32(width10_4* 50));
    //    Label107.Text = Convert.ToString(Convert.ToSingle(width10_4) * 100) + "%";

    //    SqlCommand cmd11_1 = new SqlCommand("select prnt from prnt where voteID=" + 11 + "and votedetailID=" + 1, con);
    //    float width11_1 = Convert.ToSingle(cmd11_1.ExecuteScalar());
    //    Image39.Width =Unit.Pixel( Convert.ToInt32(width11_1* 50));
    //    Label109.Text = Convert.ToString(Convert.ToSingle(width11_1) * 100) + "%";

    //    SqlCommand cmd11_2 = new SqlCommand("select prnt from prnt where voteID=" + 11 + "and votedetailID=" + 2, con);
    //    float width11_2 = Convert.ToSingle(cmd11_2.ExecuteScalar());
    //    Image40.Width = Unit.Pixel(Convert.ToInt32(width11_2* 50));
    //    Label110.Text = Convert.ToString(Convert.ToSingle(width11_2) * 100) + "%";

    //    SqlCommand cmd11_3 = new SqlCommand("select prnt from prnt where voteID=" + 11 + "and votedetailID=" + 3, con);
    //    float width11_3 = Convert.ToSingle(cmd11_3.ExecuteScalar());
    //    Image41.Width = Unit.Pixel(Convert.ToInt32(width11_3* 50));
    //    Label111.Text = Convert.ToString(Convert.ToSingle(width11_3) * 100) + "%";

    //    SqlCommand cmd11_4 = new SqlCommand("select prnt from prnt where voteID=" + 11 + "and votedetailID=" + 4, con);
    //    float width11_4 = Convert.ToSingle(cmd11_4.ExecuteScalar());
    //    Image42.Width = Unit.Pixel(Convert.ToInt32(width11_4* 50));
    //    Label112.Text = Convert.ToString(Convert.ToSingle(width11_4) * 100) + "%";

    //    SqlCommand cmd12_1 = new SqlCommand("select prnt from prnt where voteID=" + 12 + "and votedetailID=" + 1, con);
    //    float width12_1 = Convert.ToSingle(cmd12_1.ExecuteScalar());
    //    Image43.Width =Unit.Pixel( Convert.ToInt32(width12_1* 50));
    //    Label114.Text = Convert.ToString(Convert.ToSingle(width12_1) * 100) + "%";

    //    SqlCommand cmd12_2 = new SqlCommand("select prnt from prnt where voteID=" + 12 + "and votedetailID=" + 2, con);
    //    float width12_2 = Convert.ToSingle(cmd12_2.ExecuteScalar());
    //    Image44.Width = Unit.Pixel(Convert.ToInt32(width12_2* 50));
    //    Label115.Text = Convert.ToString(Convert.ToSingle(width12_2) * 100) + "%";

    //    SqlCommand cmd12_3 = new SqlCommand("select prnt from prnt where voteID=" + 12 + "and votedetailID=" + 3, con);
    //    float width12_3 = Convert.ToSingle(cmd12_3.ExecuteScalar());
    //    Image45.Width =Unit.Pixel( Convert.ToInt32(width12_3* 50));
    //    Label116.Text = Convert.ToString(Convert.ToSingle(width12_3) * 100) + "%";

    //    SqlCommand cmd12_4 = new SqlCommand("select prnt from prnt where voteID=" + 12 + "and votedetailID=" + 4, con);
    //    float width12_4 = Convert.ToSingle(cmd12_4.ExecuteScalar());
    //    Image46.Width =Unit.Pixel( Convert.ToInt32(width12_4* 50));
    //    Label117.Text = Convert.ToString(Convert.ToSingle(width12_4) * 100) + "%";

    //    SqlCommand cmd6_5 = new SqlCommand("select prnt from prnt where voteID=" + 6 + "and votedetailID=" + 5, con);
    //    float width6_5 = Convert.ToSingle(cmd6_5.ExecuteScalar());
    //    Image47.Width =Unit.Pixel( Convert.ToInt32(width6_5* 50));
    //    Label88.Text = Convert.ToString(Convert.ToSingle(width6_5) * 100) + "%";

    //    SqlCommand cmd6_6 = new SqlCommand("select prnt from prnt where voteID=" + 6 + "and votedetailID=" + 6, con);
    //    float width6_6 = Convert.ToSingle(cmd6_6.ExecuteScalar());
    //    Image48.Width = Unit.Pixel(Convert.ToInt32(width6_6* 50));
    //    Label89.Text = Convert.ToString(Convert.ToSingle(width6_6) * 100) + "%";

    //    SqlCommand cmd6_7 = new SqlCommand("select prnt from prnt where voteID=" + 6 + "and votedetailID=" + 7, con);
    //    float width6_7 = Convert.ToSingle(cmd6_7.ExecuteScalar());
    //    Image49.Width =Unit.Pixel( Convert.ToInt32(width6_7* 50));
    //    Label90.Text = Convert.ToString(Convert.ToSingle(width6_7) * 100) + "%";

    //    SqlCommand cmd9_5 = new SqlCommand("select prnt from prnt where voteID=" + 9 + "and votedetailID=" + 5, con);
    //    float width9_5 = Convert.ToSingle(cmd9_5.ExecuteScalar());
    //    Image50.Width =Unit.Pixel( Convert.ToInt32(width9_5* 50));
    //    Label103.Text = Convert.ToString(Convert.ToSingle(width9_5) * 100) + "%";

    //    SqlCommand cmd10_5 = new SqlCommand("select prnt from prnt where voteID=" + 10 + "and votedetailID=" + 5, con);
    //    float width10_5 = Convert.ToSingle(cmd10_5.ExecuteScalar());
    //    Image51.Width = Unit.Pixel(Convert.ToInt32(width10_5* 50));
    //    Label108.Text = Convert.ToString(Convert.ToSingle(width10_5) * 100) + "%";

    //    SqlCommand cmd11_5 = new SqlCommand("select prnt from prnt where voteID=" + 11 + "and votedetailID=" + 5, con);
    //    float width11_5 = Convert.ToSingle(cmd11_5.ExecuteScalar());
    //    Image52.Width = Unit.Pixel(Convert.ToInt32(width11_5* 50));
    //    Label113.Text = Convert.ToString(Convert.ToSingle(width11_5) * 100) + "%";

    //    con.Close();
    //}
    //protected void close1_Click(object sender, EventArgs e)
    //{
    //    Response.Write("<script language:javascript>javascript:window.close();</script>"); 
    //}
}

